package com.dxy.dxyuser.service;

import com.dxy.dxycommon.VO.AddressVO;
import com.dxy.dxyuser.DO.UserAddress;

import java.util.List;

/**
 * junfeng 2018/10/31
 */
public interface AddressService {

    /**
     * 添加地址
     *
     * @param addressVO
     * @return
     */
    UserAddress addAddress(AddressVO addressVO);

    /**
     * 删除地址
     *
     * @param id
     */
    void deleteAddress(Integer id);

    /**
     * 地址列表
     *
     * @param userId
     * @return
     */
    List<AddressVO> listAddress(String userId);


    AddressVO selectAddress(Integer id);



}
